import DS from 'ember-data';
import { computed } from '@ember/object';

export default DS.Model.extend({
    firstName: DS.attr('string'),
    lastName: DS.attr('string'),
    name: DS.attr('string'),
    age: DS.attr('number'),
    admin: DS.attr('boolean'),
    birthday: DS.attr('date'),
    fullName: computed('firstName', 'lastName', function () {
        return `${this.firstName} ${this.lastName}`;
    })
});